<template>
	<view class="mine-view">
		<view class="mine-view__header">
			<view class="header-info">
				<u-avatar src="https://ps.ssl.qhimg.com/t01349dcc95e8fa6c37.jpg" size="68" shape="square"></u-avatar>
				<view class="header-info__content">
					<view class="content-name">{{userInfo.realname}}</view>
					<view class="content-more">
						<view class="content-more__no">微信号：{{userInfo.mobile}}</view>
						<u-icon name="/static/mine/icon-code.png" size="20"></u-icon>
						<u-icon name="arrow-right" color="#b4b4b4"></u-icon>
					</view>
				</view>
			</view>
		</view>
		<view class="mine-view__list">
			<view class="list-item">
				<u-icon name="/static/mine/icon-service.png" size="20"></u-icon>
				<view class="list-item__title">服务</view>
				<u-icon name="arrow-right" color="#b4b4b4"></u-icon>
			</view>
		</view>
		<view class="mine-view__list">
			<view class="list-item">
				<u-icon name="/static/mine/icon-collect.png" size="20"></u-icon>
				<view class="list-item__title">收藏</view>
				<u-icon name="arrow-right" color="#b4b4b4"></u-icon>
			</view>
			<view class="list-item">
				<u-icon name="/static/mine/icon-picture.png" size="20"></u-icon>
				<view class="list-item__title">朋友圈</view>
				<u-icon name="arrow-right" color="#b4b4b4"></u-icon>
			</view>
			<view class="list-item">
				<u-icon name="/static/mine/icon-face.png" size="20"></u-icon>
				<view class="list-item__title">表情</view>
				<u-icon name="arrow-right" color="#b4b4b4"></u-icon>
			</view>
		</view>
		<view class="mine-view__list" @click="test">
			<view class="list-item">
				<u-icon name="/static/mine/icon-setting.png" size="20"></u-icon>
				<view class="list-item__title">设置</view>
				<u-icon name="arrow-right" color="#b4b4b4"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	import { mapGetters } from 'vuex'
	export default {
		data() {
			return {
				
			};
		},
		computed:{
			...mapGetters([
				'userInfo'
			])
		},
		methods: {
			test() {
				this.$store.commit('increment1')
				console.log(this.$store.state.count)
			}
		}
	}
</script>

<style lang="scss" scoped>
page {
	background-color: #ededed;
}
.mine-view {
	&__header {
		padding: 30rpx;
		background-color: #fff;
		.header-info {
			display: flex;
			align-items: center;
			&__content {
				flex: 1;
				margin-left: 30rpx;
				.content-name {
					font-size: 44rpx;
					font-weight: bold;
				}
				.content-more {
					display: flex;
					align-items: center;
					margin-top: 28rpx;
					&__no {
						flex: 1;
						color: #8d8d8d;
						font-size: 28rpx;
					}
				}
			}
		}
	}
	&__list {
		margin-top: 20rpx;
		background-color: #fff;
		.list-item {
			position: relative;
			display: flex;
			align-items: center;
			padding: 30rpx;
			&__title {
				flex: 1;
				padding: 0 30rpx;
			}
			&::after {
				position: absolute;
				content: '';
				display: block;
				right: 0;
				left: 45px;
				bottom: 0;
				height: 1px;
				transform: scaleY(0.5);
				background-color: #e6e6e6;
			}
			&:last-child::after {
				display: none;
			}
		}
	}
}
</style>
